package api

import (
	"net/http"
	"pids-cloud-server/entity"

	"github.com/gin-gonic/gin"
)

// GetModelList 获取型号列表
// @Summary 获取型号列表
// @Description 获取型号列表
// @Accept json
// @Produce json
// @Success 200 {object} common.Result
// @Failure 400 {object} common.Result
func GetModelList(c *gin.Context) {
	models := []entity.ModelType{
		entity.WINDOWS,
		entity.UBUNTU,
		entity.CENTOS,
		entity.MPDU,
		entity.H3C_S7506E,
	}

	c.JSON(http.StatusOK, gin.H{
		"code":    200,
		"message": "success",
		"data":    models,
	})
}
